package com.ruoyi.business.dto;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;

/**
 * 企业观看视频记录对象 t_enterprise_video_record
 * 
 * @author lcz
 * @date 2025-01-19
 */
@ApiModel("记录视频观看进度-入参")
public class EnterpriseVideoRecordDTO
{

    /** 视频id */
    @NotNull(message="视频id不能为空")
    @ApiModelProperty("视频id")
    private Long videoId;

    /** 观看时长（秒） */
    @NotNull(message="观看时长不能为空")
    @ApiModelProperty("观看时长（秒）")
    private Long watchDuration;

    /** 观看百分比（值为0~100） */
    @Excel(name = "观看百分比", readConverterExp = "值=为0~100")
    @ApiModelProperty("观看百分比（值为0~100）")
    private Long watchPercentage;

    public Long getVideoId() 
    {
        return videoId;
    }
    public void setWatchDuration(Long watchDuration) 
    {
        this.watchDuration = watchDuration;
    }

    public Long getWatchDuration() 
    {
        return watchDuration;
    }
    public void setWatchPercentage(Long watchPercentage) 
    {
        this.watchPercentage = watchPercentage;
    }

    public Long getWatchPercentage() 
    {
        return watchPercentage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("videoId", getVideoId())
            .append("watchDuration", getWatchDuration())
            .append("watchPercentage", getWatchPercentage())
            .toString();
    }
}
